#include <iostream>
#include <iomanip>
using namespace std;

int main()
{
    int test = 0x12345678;
    char* ptest = (char*)&test;
	
    int size = sizeof(int);
    for(int i = 0; i < size; ++i){
        cout << hex << (int)*(char*)(ptest + i) << " ";
    }
    cout << endl;
}
